import axios from "../../utils/axios";


// 获取分销设置列表
export function getList() {
    return axios({
        url: "/sysDistribution/findBySysDistributionList",
        method: "get"
    });
}

//新增分销
export function insertSysDistribution(data) {
    return axios({
        url: "/sysDistribution/insertSysDistribution",
        method: "post",
        data: data
    });
}

//修改分销
export function updateSysDistribution(data) {
    return axios({
        url: "/sysDistribution/updateSysDistribution",
        method: "post",
        data: data
    });
}

//删除分销
export function delSysDistribution(data) {
    return axios({
        url: "/sysDistribution/delSysDistribution",
        method: "post",
        data: data
    });
}
